Menu Top
Complete Course of Mathematics
Topic 1: Numbers & Numerical Applications Topic 2: Algebra Topic 3: Quantitative Aptitude
Topic 4: Geometry Topic 5: Construction Topic 6: Coordinate Geometry
Topic 7: Mensuration Topic 8: Trigonometry Topic 9: Sets, Relations & Functions
Topic 10: Calculus Topic 11: Mathematical Reasoning Topic 12: Vectors & Three-Dimensional Geometry
Topic 13: Linear Programming Topic 14: Index Numbers & Time-Based Data Topic 15: Financial Mathematics
Topic 16: Statistics & Probability


Content On This Page
Set Relations (Basic Comparison) Relations on a Set: Definition Representation of a Relation (Set Form, Arrow Diagram)
Domain and Range of a Relation


Set Relations



Set Relations (Basic Comparison)

Before defining mathematical relations between elements of sets, it's useful to review the basic ways sets themselves can relate to each other based on their elements. These are essentially comparisons of the entire collections of elements.


Basic Comparisons Between Sets:

These basic relationships provide a foundation for understanding how sets can be related before we delve into the formal definition of a "relation" between elements.


Relations on a Set: Definition

In mathematics, the term "relation" is more specific than just comparing sets. A mathematical relation defines a specific association or connection between elements from one set to elements of another set (which can be the same set).

The formal definition of a relation is built upon the concept of the Cartesian product of sets.

Relation from Set A to Set B

Let $A$ and $B$ be two non-empty sets. A relation $R$ from set $A$ to set $B$ is defined as any subset of the Cartesian product $A \times B$.

Formal Definition:

$R \text{ is a relation from } A \text{ to } B \iff R \subseteq A \times B$

This means that a relation $R$ is a collection of ordered pairs $(a, b)$, where the first component $a$ is an element taken from set $A$, and the second component $b$ is an element taken from set $B$. The specific ordered pairs included in $R$ are determined by the rule or condition that defines the relation.

Membership in a Relation:

Essentially, a relation acts like a filter on the Cartesian product $A \times B$, selecting only those pairs that satisfy the given rule of the relation.


Example 1. Let $A = \{ \text{Delhi, Mumbai, Kolkata} \}$ be a set of cities in India, and $B = \{ \text{Yamuna, Ganga, Hooghly, Mithi} \}$ be a set of rivers in India. Define a relation $R$ from $A$ to $B$ as "$x$ is located on the bank of river $y$". Write $R$ in roster form and identify which cities are related to which rivers.

Answer:

Given: $A = \{ \text{Delhi, Mumbai, Kolkata} \}$, $B = \{ \text{Yamuna, Ganga, Hooghly, Mithi} \}$.

Relation Rule: $(x, y) \in R \iff x \in A, y \in B, \text{ and } x \text{ is located on the bank of } y$.

To Find: Relation $R$ in roster form and identify related pairs.

Solution:

We need to form ordered pairs $(x, y)$ where $x$ is a city from A and $y$ is a river from B, such that the city is on the bank of the river.

  • Delhi is on the bank of the Yamuna River. So, (Delhi, Yamuna) is in R.
  • Mumbai is on the bank of the Mithi River. So, (Mumbai, Mithi) is in R.
  • Kolkata is on the bank of the Hooghly River. So, (Kolkata, Hooghly) is in R.
  • Delhi is not on the bank of Ganga, Hooghly, or Mithi.
  • Mumbai is not on the bank of Yamuna, Ganga, or Hooghly.
  • Kolkata is not on the bank of Yamuna, Ganga, or Mithi.

The set of ordered pairs that satisfy the relation is:

$R = \{ (\text{Delhi, Yamuna}), (\text{Mumbai, Mithi}), (\text{Kolkata, Hooghly}) \}$

This set $R$ is a subset of the Cartesian product $A \times B$. Thus, $R$ is a relation from $A$ to $B$.

We can say:

  • Delhi R Yamuna
  • Mumbai R Mithi
  • Kolkata R Hooghly
  • Delhi $\not R$ Ganga, etc.

Relation on a Set A

A special case is when the relation is defined between elements of the same set. A relation $R$ on a set $A$ (or a relation from $A$ to $A$) is defined as any subset of the Cartesian product $A \times A$.

Formal Definition:

$R \text{ is a relation on } A \iff R \subseteq A \times A$

In this case, the ordered pairs are of the form $(a_1, a_2)$, where both the first and second components, $a_1$ and $a_2$, are elements of the same set $A$.


Example 2. Let $A = \{1, 2, 3, 4\}$. Define a relation $R$ on $A$ by $R = \{(a, b) \mid a, b \in A \text{ and } a \text{ divides } b\}$. Write $R$ in roster form.

Answer:

Given: $A = \{1, 2, 3, 4\}$.

Relation Rule: $R = \{(a, b) \mid a \in A, b \in A, \text{ and } a \text{ divides } b\}$.

To Find: Relation $R$ in roster form.

Solution:

We need to find all ordered pairs $(a, b)$ such that both $a$ and $b$ are from set $A$, and $a$ divides $b$ (meaning $b$ divided by $a$ gives an integer result with no remainder). We check all possible pairs $(a, b)$ from $A \times A$:

  • Pairs with $a=1$: 1 divides 1, 2, 3, 4. So, $(1, 1), (1, 2), (1, 3), (1, 4) \in R$.
  • Pairs with $a=2$: 2 divides 2, 4. (2 does not divide 1 or 3). So, $(2, 2), (2, 4) \in R$.
  • Pairs with $a=3$: 3 divides 3. (3 does not divide 1, 2, or 4). So, $(3, 3) \in R$.
  • Pairs with $a=4$: 4 divides 4. (4 does not divide 1, 2, or 3). So, $(4, 4) \in R$.

The set of ordered pairs satisfying the relation is:

$R = \{ (1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4) \}$

This set $R$ is a subset of $A \times A$. Thus, $R$ is a relation on set $A$.


Total Number of Relations

The number of possible relations that can be defined between two sets (or on a single set) depends on the number of elements in the sets.

Let set $A$ be a finite set with $|A| = p$ elements.

Let set $B$ be a finite set with $|B| = q$ elements.

The Cartesian product $A \times B$ is the set of all ordered pairs $(a, b)$ where $a \in A$ and $b \in B$. The number of elements in $A \times B$ is $|A \times B| = |A| \times |B| = pq$.

A relation $R$ from $A$ to $B$ is any subset of $A \times B$.

The total number of possible subsets of a set with $n$ elements is $2^n$ (this is the cardinality of the power set).

Since $A \times B$ is a set containing $pq$ ordered pairs (elements), the total number of possible subsets of $A \times B$ is $2^{pq}$.

Therefore, the total number of possible relations from a set $A$ with $p$ elements to a set $B$ with $q$ elements is $2^{pq}$.

If the relation is on a single set $A$ with $|A|=p$, the relation is a subset of $A \times A$. The number of elements in $A \times A$ is $|A| \times |A| = p \times p = p^2$. The total number of possible relations on set $A$ is the number of subsets of $A \times A$, which is $2^{p^2}$.

Summary for Competitive Exams

Relation from A to B: A subset $R$ of the Cartesian product $A \times B$. $R \subseteq A \times B$.

  • $(a, b) \in R \iff a$ is related to $b$ (denoted $a R b$).
  • If $|A|=p, |B|=q$, total number of relations from A to B is $2^{pq}$.

Relation on A: A subset $R$ of the Cartesian product $A \times A$. $R \subseteq A \times A$.

  • If $|A|=p$, total number of relations on A is $2^{p^2}$.


Representation of a Relation (Set Form, Arrow Diagram)

A relation, being a set of ordered pairs, can be represented in several ways. The choice of representation often depends on the nature of the sets involved (finite or infinite) and the complexity of the relation's rule.


Methods of Representing a Relation

  1. Set Form (Roster Form)

    This is the most fundamental way to represent a relation $R$. It involves listing all the ordered pairs $(a, b)$ that belong to the relation, enclosed within curly braces. This method is practical for relations involving finite sets with a relatively small number of ordered pairs.

    Example:
    Let $A = \{ \text{Red, Blue, Green} \}$ and $B = \{ \text{Apple, Grape} \}$. A relation $R$ from $A$ to $B$ defined by "is the colour of" could be:

    $R = \{ (\text{Red, Apple}), (\text{Green, Apple}), (\text{Green, Grape}) \}$

    This tells us that Red is related to Apple, Green is related to Apple, and Green is related to Grape by this relation.

  2. Set-Builder Form

    This method describes the relation by stating the rule or property that the ordered pairs must satisfy. It is particularly useful for relations involving large or infinite sets where listing all pairs is impossible.

    Example:
    Let $\mathbb{Z}$ be the set of integers. A relation $R$ on $\mathbb{Z}$ can be defined as "is less than or equal to".

    $R = \{ (a, b) \mid a \in \mathbb{Z}, b \in \mathbb{Z}, \text{ and } a \le b \}$

    This relation includes pairs like $(1, 5)$, $(-3, -1)$, $(0, 0)$, etc., but does not include pairs like $(5, 1)$ or $(0, -2)$. Listing all these pairs is impossible as $\mathbb{Z}$ is infinite.

  3. Arrow Diagram (Mapping Diagram)

    This is a visual representation, especially helpful for relations between finite sets. It provides a clear picture of which elements from the first set are related to which elements in the second set.

    Construction:
    • Draw two shapes (usually ovals or rectangles) representing the sets $A$ (the domain set) and $B$ (the codomain set).
    • Write the elements of set $A$ inside the first shape and the elements of set $B$ inside the second shape.
    • For every ordered pair $(a, b)$ that belongs to the relation $R$ (i.e., if $a R b$), draw an arrow starting from the element $a$ in set $A$ and pointing to the element $b$ in set $B$.

    Example 1. Let $A = \{p, q, r\}$ and $B = \{1, 2, 3, 4\}$. Let $R$ be the relation from $A$ to $B$ defined by $R = \{(p, 2), (q, 1), (r, 2), (r, 4)\}$. Represent $R$ using an arrow diagram.

    Answer:

    Given: $A = \{p, q, r\}$, $B = \{1, 2, 3, 4\}$, $R = \{(p, 2), (q, 1), (r, 2), (r, 4)\}$.

    Representation:

    Draw two ovals, label the first 'Set A' and the second 'Set B'.

    Place elements p, q, r in Set A oval and elements 1, 2, 3, 4 in Set B oval.

    Draw arrows based on the ordered pairs in R:

    • Draw an arrow from $p$ to $2$ (because $(p, 2) \in R$).
    • Draw an arrow from $q$ to $1$ (because $(q, 1) \in R$).
    • Draw an arrow from $r$ to $2$ (because $(r, 2) \in R$).
    • Draw an arrow from $r$ to $4$ (because $(r, 4) \in R$).
    Arrow diagram showing Set A {p, q, r} and Set B {1, 2, 3, 4}. Arrows from p to 2, q to 1, r to 2, r to 4.

    Example 2. Let $A = \{1, 2, 3\}$. Consider the relation $R$ on $A$ defined by $R = \{(a, b) \mid a, b \in A, a \le b\}$. Represent $R$ using an arrow diagram.

    Answer:

    Given: $A = \{1, 2, 3\}$, Relation $R = \{(a, b) \mid a, b \in A, a \le b\}$ on $A$.

    To Find: Arrow diagram for R.

    Solution:

    First, write the relation $R$ in roster form by finding all pairs $(a, b)$ from $A \times A$ where $a \le b$:

    • $a=1$: $(1, 1), (1, 2), (1, 3)$ (since $1 \le 1, 1 \le 2, 1 \le 3$)
    • $a=2$: $(2, 2), (2, 3)$ (since $2 \le 2, 2 \le 3$; $2 \not\le 1$)
    • $a=3$: $(3, 3)$ (since $3 \le 3$; $3 \not\le 1, 3 \not\le 2$)

    $R = \{(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 3)\}$

    Since the relation is on set A, we draw one oval representing set A and place its elements inside.

    Draw arrows based on the pairs in R:

    • From 1 to 1
    • From 1 to 2
    • From 1 to 3
    • From 2 to 2
    • From 2 to 3
    • From 3 to 3
    Arrow diagram on Set A {1, 2, 3}. Arrows: 1->1, 1->2, 1->3, 2->2, 2->3, 3->3.
  4. Table Form

    For relations between finite sets, a table or matrix can be used. The rows represent elements of the first set (Domain set), and the columns represent elements of the second set (Codomain set). A mark (like a checkmark or 1) is placed at the intersection of a row and column if the corresponding ordered pair is in the relation.

    Example:
    Using the relation from Example 1, $A = \{p, q, r\}$, $B = \{1, 2, 3, 4\}$, $R = \{(p, 2), (q, 1), (r, 2), (r, 4)\}$.

    $A \setminus B$1234
    p
    q
    r

    The checkmark at (p, 2) indicates that the pair (p, 2) is in the relation R.

    Example:
    Using the relation from Example 2, $A = \{1, 2, 3\}$, $R = \{(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 3)\}$ on set A.

    $A \setminus A$123
    1
    2
    3
  5. Graphical Form

    When the sets involved are subsets of the real numbers (like $\mathbb{Z}, \mathbb{Q}, \mathbb{R}$), a relation $R$ (which is a subset of the Cartesian product, e.g., $\mathbb{R} \times \mathbb{R}$) can be visualized by plotting the ordered pairs $(x, y) \in R$ as points on a Cartesian coordinate plane.

    Example:
    The relation $R = \{(x, y) \in \mathbb{R} \times \mathbb{R} \mid y = x^2 \}$. The pairs in this relation are of the form $(x, x^2)$, such as $(0, 0), (1, 1), (-1, 1), (2, 4), (-2, 4)$, etc. Plotting these points on the xy-plane gives the familiar graph of a parabola.

    Graph of y=x^2 on Cartesian plane
    (Imagine an image showing the graph of the parabola $y=x^2$ on a coordinate plane).
    Example:
    The relation $R = \{(x, y) \in \mathbb{Z} \times \mathbb{Z} \mid y = 2x + 1 \}$. The pairs are $(x, 2x+1)$ where $x$ is an integer, e.g., $(-1, -1), (0, 1), (1, 3), (2, 5)$, etc. Plotting these on the xy-plane would result in a series of discrete points lying on the line $y=2x+1$.
    Discrete points on a line for y=2x+1 with integer x
    (Imagine an image showing discrete points $(..., (-1,-1), (0,1), (1,3), (2,5), ...)$ plotted on a coordinate plane).

Choosing the appropriate representation can greatly aid in understanding the properties and characteristics of a relation.


Domain and Range of a Relation

For any relation $R$ defined from a set $A$ to a set $B$ ($R \subseteq A \times B$), we can identify specific subsets of $A$ and $B$ that are directly involved in the relation. These subsets are called the domain and the range of the relation. The set $B$ itself is called the codomain.

Domain of a Relation

The domain of a relation $R$ from set $A$ to set $B$ is the set of all first components of the ordered pairs that belong to the relation $R$. It is the set of elements in $A$ from which arrows originate in the arrow diagram.

Notation:

The domain of relation $R$ is denoted by Domain$(R)$ or Dom$(R)$.

Formal Definition:

Domain$(R) = \{ a \in A \mid (a, b) \in R \text{ for at least one } b \in B \}$

The domain of $R$ is always a subset of the starting set $A$, i.e., Domain$(R) \subseteq A$.

Range of a Relation

The range of a relation $R$ from set $A$ to set $B$ is the set of all second components of the ordered pairs that belong to the relation $R$. It is the set of elements in $B$ to which arrows point in the arrow diagram.

Notation:

The range of relation $R$ is denoted by Range$(R)$ or Ran$(R)$.

Formal Definition:

Range$(R) = \{ b \in B \mid (a, b) \in R \text{ for at least one } a \in A \}$

The range of $R$ is always a subset of the target set $B$, i.e., Range$(R) \subseteq B$.

Codomain of a Relation

The codomain of a relation $R$ from set $A$ to set $B$ is simply the entire target set $B$.

It represents the set of all potential second components of the ordered pairs in the relation.

By definition of Range, the range of a relation is always a subset of its codomain.

Range$(R) \subseteq \text{Codomain}(R) = B$


Example 1. Let $A = \{1, 2, 3, 4\}$, $B = \{p, q, r, s\}$. Let $R = \{(1, p), (2, q), (1, r), (4, p)\}$ be a relation from $A$ to $B$. Find the Domain, Range, and Codomain of $R$.

Answer:

Given: $A = \{1, 2, 3, 4\}$ (Starting Set/Implicit Domain for forming $A \times B$), $B = \{p, q, r, s\}$ (Target Set/Codomain), $R = \{(1, p), (2, q), (1, r), (4, p)\}$ (The Relation).

To Find: Domain$(R)$, Range$(R)$, and Codomain$(R)$.

Solution:

Domain of $R$:

This is the set of all distinct first elements in the ordered pairs of $R$.

The first elements are 1, 2, 1, 4.

Removing duplicates and listing them, we get $\{1, 2, 4\}$.

Domain$(R) = \{1, 2, 4\}$

(Note that the domain $\{1, 2, 4\}$ is a subset of $A = \{1, 2, 3, 4\}$. The element 3 from set A is not in the domain because no arrow originates from 3 in the relation R).

(If represented by arrow diagram from Example 1 of I3: arrows originate from p, q, r. So Domain = {p, q, r}).

(If represented by arrow diagram from Example 2 of I3: arrows originate from 1, 2, 3. So Domain = {1, 2, 3}).

Range of $R$:

This is the set of all distinct second elements in the ordered pairs of $R$.

The second elements are p, q, r, p.

Removing duplicates and listing them, we get $\{p, q, r\}$.

Range$(R) = \{p, q, r\}$

(Note that the range $\{p, q, r\}$ is a subset of $B = \{p, q, r, s\}$. The element s from set B is not in the range because no arrow points to s in the relation R).

(If represented by arrow diagram from Example 1 of I3: arrows point to 1, 2, 4. So Range = {1, 2, 4}).

(If represented by arrow diagram from Example 2 of I3: arrows point to 1, 2, 3. So Range = {1, 2, 3}).

Codomain of $R$:

This is the entire target set $B$.

Codomain$(R) = B = \{p, q, r, s\}$

As expected, Range$(R) = \{p, q, r\} \subseteq \text{Codomain}(R) = \{p, q, r, s\}$.


Example 2. Let $R$ be the relation on the set $\mathbb{N}$ of natural numbers defined by $R = \{(a, b) \mid a, b \in \mathbb{N} \text{ and } b = a + 5 \}$. Find the domain and range of $R$.

Answer:

Given: Relation $R = \{(a, b) \mid a, b \in \mathbb{N} \text{ and } b = a + 5 \}$ on $\mathbb{N}$ (meaning from $\mathbb{N}$ to $\mathbb{N}$).

To Find: Domain$(R)$ and Range$(R)$.

Solution:

The relation consists of pairs $(a, b)$ where $a$ is a natural number, $b$ is a natural number, and $b$ is 5 more than $a$.

Domain of $R$:

The domain is the set of all possible first components, $a$, such that $(a, b) \in R$ for some natural number $b$. The condition is that $b = a + 5$ must be a natural number.

If $a \in \mathbb{N}$ (i.e., $a \ge 1$), then $a+5$ will always be a natural number ($a+5 \ge 1+5 = 6$).

So, for every natural number $a$, there exists a natural number $b=a+5$ such that $(a, b) \in R$.

Thus, the domain is the set of all natural numbers.

Domain$(R) = \mathbb{N} = \{1, 2, 3, ...\}$

Range of $R$:

The range is the set of all possible second components, $b$, such that $(a, b) \in R$ for some natural number $a$. The condition is $b = a + 5$, where $a \in \mathbb{N}$.

If $a=1$, $b = 1+5 = 6$.

If $a=2$, $b = 2+5 = 7$.

If $a=3$, $b = 3+5 = 8$.

And so on. The values of $b$ are $6, 7, 8, 9, ...$.

These are all natural numbers greater than or equal to 6.

Range$(R) = \{6, 7, 8, ...\}$

(Note that the codomain is $\mathbb{N}$. The range $\{6, 7, 8, ...\}$ is a proper subset of the codomain $\mathbb{N} = \{1, 2, 3, 4, 5, 6, 7, ...\}$).


Summary for Competitive Exams

Relation from A to B: A subset $R$ of $A \times B$.

Representations:

  • Roster Form: Listing all pairs, e.g., $\{(a,b), (c,d)\}$.
  • Set-Builder Form: Rule-based, e.g., $\{(x,y) \mid y = x^2\}$.
  • Arrow Diagram: Visual using ovals and arrows (for finite sets).
  • Table Form: Matrix indicating related pairs (for finite sets).
  • Graphical Form: Plotting points on a coordinate plane (for relations on subsets of $\mathbb{R}$).

Domain ($Dom(R)$): Set of all first components in the ordered pairs of $R$. $Dom(R) \subseteq A$.

Range ($Ran(R)$): Set of all second components in the ordered pairs of $R$. $Ran(R) \subseteq B$.

Codomain: The entire target set $B$. $Ran(R) \subseteq \text{Codomain}(R)$.